package com.ls.example.TestSetterDI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSetterDi {

    public static void main(String args[]){
        test02();
    }


    public  static void test02(){
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext1.xml");
        Person person=ctx.getBean("personSet",Person.class);
        System.out.println(person);
    }
}
